package com.homework.dao;

import com.homework.model.User;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import java.sql.PreparedStatement;

/**
 * @author HLQ
 * @date 2024/9/29 11:15
 */
public interface UserDao {
    public int insert(User user) ;
    public void update(User user);
    public Integer delete(int userid);
    public User login(String name, String password);
    public int countAllUsers();
}
